package com.itheima.service;

import com.itheima.client.dishpojo.vo.CategoryVo;
import com.itheima.mapper.client.ClientCategoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author wuzhiyong
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class ClientCategoryService {
    @Autowired
    private ClientCategoryMapper clientCategoryMapper;

    /**
     * 分类列表
     * @return List<CategoryVo>
     */
    public List<CategoryVo> getDishType(){
        return clientCategoryMapper.selectDishType();
    }
}
